<template>
	<view>
		<view v-for="(item,index) in resumes" class="person_item" @click="bindResumeDetail(item.id)">
			<view class="flex-box col3 fs36 lh50">
				<view class="flex-grow-1 m-ellipsis fwb pr30">{{item.username}}</view>
				<view class="fs26 col9" v-if="item.user.logintime_text">{{item.user.logintime_text}}</view>
			</view>
			<view class="mt10 fs24 cola5"><text>{{item.gender_text}} ｜ {{item.work_experience.name}} ｜ {{item.education.name}}</text></view>
			<view class="flex-box mt30 fs26 lh36">
				<image :src="iconPath('icon_odd1.png')" mode="aspectFill" class="ico28"></image>
				<view class="pl20 flex-grow-1 col6">区域：{{item.fav_district.name}}</view>
			</view>
			<view class="flex-box mt20 fs26 lh36">
				<image :src="iconPath('icon_odd2.png')" mode="aspectFill" class="ico28"></image>
				<view class="pl20 flex-grow-1 col6">工种：{{item.category.name}}</view>
			</view>
			<view class="flex-box mt20 fs26 lh36">
				<image :src="iconPath('icon_odd4.png')" mode="aspectFill" class="ico28"></image>
				<view class="pl20 flex-grow-1 col6">电话：{{item.mobile}}</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		name: "odd_person_list",
		props:{
			resumes: {
				type: Array,
				default: []
			}
		},
		data() {
			return {
				
			};
		},
		methods:{
			bindResumeDetail(id) {
				uni.navigateTo({
					url: '/pages/public/odd_person_info?id='+id
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.person_item {
		width: 692rpx;
		padding: 30rpx;
		background: #FFFFFF;
		box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(0, 0, 0, 0.03);
		border-radius: 18rpx;
		margin-bottom: 20rpx;
	}
</style>